/**
 * 数据源录入
 */
function scDatasource(type){
    var com = scCommon.instance();
    var crEle = com.crEle;
    
    var box = null;
    var text = null;

    /**
     * 创建视图
     */
    this.createView = function(option){
        box = crEle(null, "sc-datasource");

        text = crEle("textarea", "sc-datasource-text");
        box.append(text);

        return box;
    }

    this.getData = function(){
        let json = JSON.parse(text.value);
        return json;
    }
    
}